<template>
  <div id="app">
    <Header />
    <router-view class="main-container" />
    <Footer />
  </div>
</template>
<script>
import Header from "@/components/Header.vue";
import Footer from "@/components/Footer.vue";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  // created() {
  //   // console.log(111,this.$router.originalPush)
  //   this.$router.push = (val) => {
  //     let routeUrl = this.$router.resolve(val);
  //     window.open(routeUrl.href, "_blank");
  //   };
  // },
};
</script>
<style lang="scss">
#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  // 隐藏横向滚动条
  overflow-x: hidden;
  background: #f1f2f7;
}
.main-container {
  // margin-top: 74px;
  margin-bottom: 113px;
}

//响应式设计
@media screen and (max-width: 768px) {
  .main-container {
    margin-bottom: 160px;
  }
}
</style>
